package com.example.flowermall.mapper;

import com.example.flowermall.entity.Product;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xiaoman
 * @since 2023-06-13
 */
public interface ProductMapper extends BaseMapper<Product> {

    List<Product> selectGoods(String productName);
    String selectCategory(Integer productId);
    Integer selectCategoryId(String categoryName);
    List<Product> selectGoodsByCategoryId(Integer id);

    List<Product> selectByTagId(Integer id);

    Product selectByProductName(String productName);

}
